import router1 from './router1'
import router2 from './router2'
import router11 from "../project0/router11";
import router21 from "../project0/router21";

/**
 * 【供应商】路由配置
 */

export default [
  {
    path: '/project0/login',
    meta:{index:1},//meta对象的index用来定义当前路由的层级,由小到大,由低到高
    component: resolve => require(['@/components/project0/common/Login'], resolve)
  },
  {
    path: "/project0/sign",
    meta:{index:2},//meta对象的index用来定义当前路由的层级,由小到大,由低到高
    component: resolve => require(['@/components/project0/common/Sign'], resolve)
  },
  {
    path: '/project0/home',
    meta:{index:0},//meta对象的index用来定义当前路由的层级,由小到大,由低到高
    component: resolve => require(['@/components/project0/common/Home'], resolve),
    children: [
      {
        path: '/project0/view1/index',
        meta:{index:1},
        component: resolve => require(['@/components/project0/view1/Index'], resolve),
        children: router1
      },
      {
        path: '/project0/view2/index',
        meta:{index:1},
        component: resolve => require(['@/components/project0/view2/Index'], resolve),
        children: router2
      },
    ]
  },
  // ====Home外页面=============================================================================
  {
    path: '/project0/view1/page',
    meta:{index:0},//meta对象的index用来定义当前路由的层级,由小到大,由低到高
    component: resolve => require(['@/components/project0/page/Page1'], resolve),
    children: router11
  },
  {
    path: '/project0/view2/page',
    meta:{index:0},//meta对象的index用来定义当前路由的层级,由小到大,由低到高
    component: resolve => require(['@/components/project0/page/Page2'], resolve),
    children: router21
  },
]
